﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Library_DLL.Entities;
using System.Xml; 

namespace Library_DLL
{
    public class worker
    {
        public static Radar ReadXMLRadar()
        {
            Radar rad = new Radar();

            try
            {
                XmlDocument xmlDoc = new XmlDocument();
                xmlDoc.Load("RAD_Config.xml"); 
                XmlNode nodeVar1 = xmlDoc.SelectSingleNode ("/settings/" + "modle");
                rad.Model = nodeVar1.InnerText;
                nodeVar1 = xmlDoc.SelectSingleNode("/settings/" + "series");   
                //Comm.Series = nodeVar1.InnerText; 
            }

            catch (Exception e)
            {
                //write e to log
            }
            return rad; 
        }

        public static Comm ReadXMLComm()
        {
            return null; 
        }

        public static missile ReadXMLmissle()
        {
            return null; 
        }

    }
}
